package com.woniu.user.controller;

import com.woniu.common.ResponseData;
import com.woniu.user.entity.WhiteList;
import com.woniu.user.service.WhiteListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

@RestController
public class SystemController {
    @Autowired
    private WhiteListService whiteListService;

    @RequestMapping("/getWhite")
    public boolean getWhite(@RequestParam("path") String path) {
        return whiteListService.queryWhiteList(path);
    }
}
